<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模块化开发</title>
</head>

<body>
    <div id="app">
        <h1>{{web.title}}</h1>
        <h2>{{web.url}}</h2>
        {{ msg }}
    </div>
    <script type="module">
        // 引入ES模块化开发所需的js文件
        // 这里要使用 Live Server 运行代码
        import { createApp, reactive } from "../00-dependency/vue.esm-browser.js"
        createApp({
            setup() {
                const web = reactive({
                    title: "Dcsgo",
                    url: "dcsgo.com.cn"
                })
                return {
                    msg: "Hello Vue3",
                    web
                }
            }
        }).mount("#app")
    </script>
</body>

</html>